/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

import com.jeeplus.modules.web.entity.WxUser;
import com.jeeplus.modules.web.entity.WxCouponType;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 用户优惠卷Entity
 * @author rongjie
 * @version 2017-08-06
 */
public class WxUserCoupon extends DataEntity<WxUserCoupon> {
	
	private static final long serialVersionUID = 1L;
	private WxUser user;		// 用户
	private WxCouponType couponType;		// 优惠券类型
	private String way;		// 获取途径
	private String time;		// 获取时间
	
	public WxUserCoupon() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxUserCoupon(String id){
		super(id);
	}

	@ExcelField(title="用户", fieldType=WxUser.class, value="user.userName", align=2, sort=7)
	public WxUser getUser() {
		return user;
	}

	public void setUser(WxUser user) {
		this.user = user;
	}
	
	@ExcelField(title="优惠券类型", fieldType=WxCouponType.class, value="couponType.title", align=2, sort=8)
	public WxCouponType getCouponType() {
		return couponType;
	}

	public void setCouponType(WxCouponType couponType) {
		this.couponType = couponType;
	}
	
	@ExcelField(title="获取途径", align=2, sort=9)
	public String getWay() {
		return way;
	}

	public void setWay(String way) {
		this.way = way;
	}
	
	@ExcelField(title="获取时间", align=2, sort=10)
	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
	
}